#include<bits/stdc++.h>
using namespace std;

bool prime(int x)
{
	int k = sqrt(x);
	for(int i = 2;i <= k;i++)
		if(x%i == 0)
			return false;
	return true;
}

int main()
{
	int x, cnt = 0;
	while(cin>>x)
	{
		if(x <= 1)
			continue;
		else if(prime(x))
			cnt++;
	}
	cout<<"count="<<cnt;
    return 0;
}

